<template>
	<view class="item" @click="gotoDetail">
		<image :src="item.list_pic_url" mode="widthFix"></image>
		<text>{{item.name}}</text>
	</view>
</template>

<script>
	export default {
		props:{
			item:Object
		},
		name:"goodsItem",
		data() {
			return {
				
			};
		},
		methods:{
			gotoDetail(){
				uni.navigateTo({
					// url:"/pages/detail/detail?id="+this.item.id
					url:"/pages-home/detail/detail?id="+this.item.id
				})
			}
		}
		
	}
</script>

<style lang="scss">
	.item {
		image{
			width: 100%;
		}
	}

</style>
